//
//  BSTScreen.swift
//  SwiftBaseTool
//
//  Created by taolei-mac on 2018/8/7.
//  Copyright © 2018年 taolei-mac. All rights reserved.
//

import Foundation

public struct BSTScreen {

    public static func screenSize() -> CGSize {
        return UIScreen.main.bounds.size
    }
    
    public static func screenWidth() -> CGFloat {
        return screenSize().width
    }
    
    public static func screenHeight() -> CGFloat {
        return screenSize().height
    }
    
    public static func statusBarHeight() -> CGFloat {
        return UIApplication.shared.statusBarFrame.size.height
    }
    //整个顶部导航栏区域
    public static func navigationBarHeight() -> CGFloat {
        return statusBarHeight() + 44.0
    }
}
